package com.itheima.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Controller01 {

    @RequestMapping("/sayHello")
    public String sayHello(){
        System.out.println("调用了sayHello方法");
        return "success~!~";
    }

    @RequestMapping("/sayHello02")
    public String sayHello2(){
        System.out.println("调用了sayHello2方法");
        return "success~!~";
    }
}
